package com.njbdqn.qiy_shop.shopservices;

import java.util.List;

import com.njbdqn.qiy_person.entity.Userinfos;
import com.njbdqn.qiy_shop.shopdao.UserinDAO;



public class UserinService {
	private UserinDAO udao;
	
	public UserinService(){
		udao = new UserinDAO();
	}
	
	public Userinfos login(Userinfos user){
		List<Userinfos> uss = udao.login(user);
		if(uss.isEmpty()){
			return null;
		}
		return uss.get(0);
	}
}
